home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gtk-2.0 / gtk / gtkbox.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  3.4 KB  |  118 lines

  1. /* GTK - The GIMP Toolkit
  2.  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Lesser General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.
  8.  *
  9.  * This library is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the GNU
  12.  * Lesser General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with this library; if not, write to the
  16.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.  * Boston, MA 02111-1307, USA.
  18.  */
  19.  
  20. /*
  21.  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  22.  * file for a list of people on the GTK+ Team.  See the ChangeLog
  23.  * files for a list of changes.  These files are distributed with
  24.  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  25.  */
  26.  
  27. #ifndef __GTK_BOX_H__
  28. #define __GTK_BOX_H__
  29.  
  30.  
  31. #include <gdk/gdk.h>
  32. #include <gtk/gtkcontainer.h>
  33.  
  34.  
  35. G_BEGIN_DECLS
  36.  
  37.  
  38. #define GTK_TYPE_BOX            (gtk_box_get_type ())
  39. #define GTK_BOX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BOX, GtkBox))
  40. #define GTK_BOX_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BOX, GtkBoxClass))
  41. #define GTK_IS_BOX(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BOX))
  42. #define GTK_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BOX))
  43. #define GTK_BOX_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BOX, GtkBoxClass))
  44.  
  45.  
  46. typedef struct _GtkBox          GtkBox;
  47. typedef struct _GtkBoxClass   GtkBoxClass;
  48. typedef struct _GtkBoxChild   GtkBoxChild;
  49.  
  50. struct _GtkBox
  51. {
  52.   GtkContainer container;
  53.  
  54.   /*< public >*/
  55.   GList *children;
  56.   gint16 spacing;
  57.   guint homogeneous : 1;
  58. };
  59.  
  60. struct _GtkBoxClass
  61. {
  62.   GtkContainerClass parent_class;
  63. };
  64.  
  65. struct _GtkBoxChild
  66. {
  67.   GtkWidget *widget;
  68.   guint16 padding;
  69.   guint expand : 1;
  70.   guint fill : 1;
  71.   guint pack : 1;
  72.   guint is_secondary : 1;
  73. };
  74.  
  75.  
  76. GType       gtk_box_get_type           (void) G_GNUC_CONST;
  77. void       gtk_box_pack_start           (GtkBox         *box,
  78.                     GtkWidget    *child,
  79.                     gboolean      expand,
  80.                     gboolean      fill,
  81.                     guint          padding);
  82. void       gtk_box_pack_end           (GtkBox         *box,
  83.                     GtkWidget    *child,
  84.                     gboolean      expand,
  85.                     gboolean      fill,
  86.                     guint          padding);
  87. void       gtk_box_pack_start_defaults (GtkBox         *box,
  88.                     GtkWidget    *widget);
  89. void       gtk_box_pack_end_defaults   (GtkBox         *box,
  90.                     GtkWidget    *widget);
  91. void       gtk_box_set_homogeneous     (GtkBox         *box,
  92.                     gboolean      homogeneous);
  93. gboolean   gtk_box_get_homogeneous     (GtkBox         *box);
  94. void       gtk_box_set_spacing           (GtkBox         *box,
  95.                     gint          spacing);
  96. gint       gtk_box_get_spacing         (GtkBox       *box);
  97. void       gtk_box_reorder_child       (GtkBox         *box,
  98.                     GtkWidget    *child,
  99.                     gint          position);
  100. void       gtk_box_query_child_packing (GtkBox         *box,
  101.                     GtkWidget    *child,
  102.                     gboolean     *expand,
  103.                     gboolean     *fill,
  104.                     guint         *padding,
  105.                     GtkPackType  *pack_type);
  106. void       gtk_box_set_child_packing   (GtkBox         *box,
  107.                     GtkWidget    *child,
  108.                     gboolean      expand,
  109.                     gboolean      fill,
  110.                     guint          padding,
  111.                     GtkPackType   pack_type);
  112.  
  113.  
  114. G_END_DECLS
  115.  
  116.  
  117. #endif /* __GTK_BOX_H__ */
  118.